//index.js
//获取应用实例
const app = getApp()
var activedata = require('../../pages/data/activedata.js')
Page({
  data: {

  },
  goodDetail(event) {
    wx.navigateTo({
      url: '../../pages/homepage/informpage/active/active',
    })
  },
  onLoad: function (options) {
    this.setData({
      goods: activedata.active
    });
  },
  goBaidu: function () {
    wx.navigateTo({
      url: '../../pages/out/out', //
      success: function () {
      },       //成功后的回调；
      fail: function () { },         //失败后的回调；
      complete: function () { }      //结束后的回调(成功，失败都会执行)
    })
  },
  location: function () {
    // wx.navigateTo({
    //   url: '../../pages/out/location/location',
    //   success: function(){},
    //   fail:function(){},
    //   complete:function(){}
    // })
    wx.navigateTo({
      url: '/pages/map/map',
    })
  },
  goqiko: function () {

    wx.navigateTo({
      url: '../../pages/out/qikou/qikou', //
      success: function () {
      },       //成功后的回调；
      fail: function () { },         //失败后的回调；
      complete: function () { }      //结束后的回调(成功，失败都会执行)
    })
  }
})
